#!/bin/bash

if [ -z "$1" ]; then
  echo "roslaunch <command>"
  exit 1
fi

if [ -z "${SNAP}" ]; then
  echo "Not running inside a snap context: SNAP not declared"
  exit
fi

roslaunch "$@"
